package com.obas.model.metadata;

import com.ease.model.EnumerableModel;

/**
 * 
 * @author nathanleewei
 * 
 */
public class EntityType extends MetaModel implements EnumerableModel {

	/**
	 *
	 */
	private static final long serialVersionUID = 8039451554457840285L;

	public static final String ATTRIBUTE_entityTypeId = "entityTypeId";

	public static final String COLUMN_ENTITYTYPE_ID = "ENTITYTYPE_ID";

	public EntityType() {

	}

	public EntityType(String name, String code, String metaEntityTypeCode) {
		this.name = name;
		this.code = code;
		this.metaEntityTypeCode = metaEntityTypeCode;
	}

	public EntityType(long id, String name, String code, String metaEntityTypeCode) {
		this(name, code, metaEntityTypeCode);
		this.id = id;
	}

	/**	 */
	private String metaEntityTypeCode;

	/**	 */
	private String icon;

	/**
	 * @return the icon
	 */
	public String getIcon() {
		return icon;
	}

	/**
	 * @param icon
	 *            the icon to set
	 */
	public void setIcon(String icon) {
		this.icon = icon;
	}

	/**
	 * @return the metaEntityTypeCode
	 */
	public String getMetaEntityTypeCode() {
		return metaEntityTypeCode;
	}

	/**
	 * @param metaEntityTypeCode
	 *            the metaEntityTypeCode to set
	 */
	public void setMetaEntityTypeCode(String metaEntityTypeCode) {
		this.metaEntityTypeCode = metaEntityTypeCode;
	}

}
